<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo (L("home_title")); ?></title>
<link rel="stylesheet" type="text/css" href="../Public/css/style.css" />
<script type="text/javascript" src="__PUBLIC__/js/utils.js"></script>
<script type="text/javascript" src="../Public/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/tbox/box.css" />
<script type="text/javascript" src="__PUBLIC__/js/tbox/box.js"></script>
</head>
<body>
    <script type="text/javascript">
        var URL = "__URL__";
        var pubPath = '../Public/';
        var process_request='<?php echo (L("process_request")); ?>';
    </script>

<div class="so_main">
    <div class="page_tit">角色定义</div>
    <div class="Toolbar_inbox">
        <a href="__URL__/add" class="btn_a""><span>新增角色</span></a>
        <a href="javascript:void(0);" class="btn_a" onclick="del();"><span>删除角色</span></a>
    </div>
    <div class="list" >
         <!-- Think 系统列表组件开始 -->
<table id="checkList" class="list" cellpadding=0 cellspacing=0 width="100%"><tr><td height="5" colspan="4" class="topTd" ></td></tr><tr class="row" ><th width="8"><input type="checkbox" id="check" onclick="CheckAll(this)"></th><th width="15%"><a href="javascript:sortBy('mc','<?php echo ($sort); ?>','index')" title="按照角色名称<?php echo ($sortType); ?> ">角色名称<?php if(($order) == "mc"): ?><img src="../Public/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th width="70%"><a href="javascript:sortBy('description','<?php echo ($sort); ?>','index')" title="按照描述<?php echo ($sortType); ?> ">描述<?php if(($order) == "description"): ?><img src="../Public/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th >操作</th></tr><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$action): $mod = ($i % 2 );++$i;?><tr overstyle="on" id="<?php echo ($action["id"]); ?>"> <td><input type="checkbox" name="checkbox" onclick="checkon(this)" value="<?php echo ($action["id"]); ?>"></td><td><a href="javascript:edit('<?php echo (addslashes($action["id"])); ?>')"><?php echo ($action["mc"]); ?></a></td><td><?php echo (($action["description"])?($action["description"]):'&nbsp;'); ?></td><td><a href="javascript:edit('<?php echo ($action["id"]); ?>')">编辑</a>&nbsp;<a href="javascript:del('<?php echo ($action["id"]); ?>')">删除</a>&nbsp;</td></tr><?php endforeach; endif; else: echo "" ;endif; ?><tr><td height="5" colspan="4" class="bottomTd"></td></tr></table>
<!-- Think 系统列表组件结束 -->
 
    </div>
    <div class="Toolbar_inbox">
        <div class="page"><?php echo ($page); ?></div>
    </div>
    
</div>
<script>
    //鼠标移动表格效果
    $(document).ready(function(){
        $("tr[overstyle='on']").hover(
        function () {
            $(this).addClass("bg_hover");
        },
        function () {
            $(this).removeClass("bg_hover");
        }
    );
    });
</script>

    </body>
</html>